package cn.oms.manage.dao.persist.mapper;

import cn.oms.manage.pojo.entity.Order;
import cn.oms.manage.pojo.vo.OrderListVo;
import cn.oms.manage.pojo.vo.OrderStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {

    OrderStandardVO getStandardById(Long id);
    List<OrderListVo> list();
    List<OrderListVo> listByUsername(String username);
    List<OrderListVo> listByDoctor(String doctorName);
    List<OrderListVo> listByState(String state);
    Long getCustomerIdByPhoneAndUsername(@Param("phone") String phone, @Param("username") String username);

}
